'use strict';

module.exports = app => {
	const {INTEGER,STRING}=app.Sequelize;

	const CommonFile=app.model.define('commonFile',{
		id:{type:INTEGER,primaryKey:true},
		user_id:{type:INTEGER},
		role:{type:INTEGER},
		origin_name:{type:STRING(100)},
		file_name:{type:STRING(100)},
		file_size:{type:INTEGER},
		file_url:{type:STRING(255)},
		image_width:{type:STRING(30)},
		image_height:{type:STRING(30)},
		image_type:{type:STRING(30)},
		mime_type:{type:STRING(100)},
		video_id:{type:STRING(255)},
		video_url:{type:STRING(255)},
		create_time:{type:INTEGER},
		update_time:{type:INTEGER}});
	return CommonFile;
};